package com.ruoyi.business.controller.goods;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.entity.SysDictType;
import com.ruoyi.common.core.page.TableDataInfo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * ClassName:GoodsController
 * Description:
 *
 * @date:2021/4/23 15:35
 * @author: tangk
 */
@Controller
@RequestMapping("/pages/goods")
public class GoodsController extends BaseController {

    private String prefix = "pages";

    @RequiresPermissions("pages:goods:view")
    @GetMapping()
    public String config()
    {
        return prefix + "/goods";
    }

//    @PostMapping("/list")
//    @RequiresPermissions("system:dict:list")
//    @ResponseBody
//    public TableDataInfo list(SysDictType dictType)
//    {
//        startPage();
//        List<SysDictType> list = dictTypeService.selectDictTypeList(dictType);
//        return getDataTable(list);
//    }

}
